<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://zlzkj.com/tags" prefix="z" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>全球品牌通后台管理</title>
	<link href="${__static__}/admin/css/login.css" rel="stylesheet" type="text/css"/>
	<link href="${__static__}/admin/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="${__static__}/admin/css/button.css" rel="stylesheet" type="text/css"/>
</head>
<body class="login-bd">
<div class="logintop">
	<span id="demo">欢迎登录&nbsp;i-home&nbsp;后台管理</span>
</div>
<div class="main">
	<!-- <span class="systemlogo"></span> -->
<%--  	<form class="loginbox" id="form" action="${__url__}" method="post">
		<ul>
			<li>
				<input name="loginName" id="loginName" type="text" class="loginuser"  onchange="loginNameChange()" placeholder="账号" />
			</li>
			<li>
				<input name="loginPass"  id="loginPass"  type="password" class="loginpwd" placeholder="密码" />
			</li>
			<li class="mb10">
				<input type="submit" class="loginbtn" value="登录" />
				<label>
						<input name="" id="rememberMe" type="checkbox" value="" />记住密码</label>
<!-- 				<label>
				<a href="#">忘记密码？</a>
				</label> -->
			</li>
			<li>
				<span class="error" id="msg"></span>
			</li>
		</ul>
	</form> --%>
	<div class="center">
		<form action="${__url__}" id="form" method="post" style="margin-top:8%">
			<i class="fa fa-user Cone">&nbsp;&nbsp;|&nbsp;&nbsp;</i>
			<input type="text" name="loginName" id="loginName" placeholder="用户名" onblur="checkUser()"/>
			<span id="user_pass"></span>
			<br/>
			<i class="fa fa-key Cone">&nbsp;|&nbsp;&nbsp;</i>
			<input type="password" name="loginPass" id="loginPass" placeholder="密码" onblur="checkUser1()"/>
			<span id="pwd_pass"></span>
			<br/>
			<input type="submit" value="登录" class="button button-block button-rounded" style="margin-top:5%;margin-left:23%;width:52%" />
			<span class="error" id="msg" style="margin-left:60%;padding-top:10px;"></span>
			<br/>
		</form>
	</div>
</div>
<div class="loginbm">Copyright&nbsp;&nbsp;&copy;2016-<script>
		document.write(new Date().getFullYear());
	</script> &nbsp;&nbsp;i-Yccqz项目组研发
</div>
<script src="${__static__}/mod/jquery/jquery.min.js" type="text/javascript"></script>
<script src="${__static__}/admin/js/loginMy.js" type="text/javascript"></script>
<script src="${__static__}/mod/jquery/jquery.form.js" type="text/javascript"></script>
<script src="${__static__}/admin/js/jquery.cookie.js" type="text/javascript"></script>

<script type="text/javascript">
	// 提交
	$("#form").ajaxForm({
		type: "post",
		dataType: "json",
		beforeSubmit: function() {
			var name = $(".loginuser").val();
			var pwd = $(".loginpwd").val();
			if (name == "") {
				$(".loginuser").focus();
				return false;
			}
			if (pwd == "") {
				$(".loginpwd").focus();
				return false;
			}
			$("#msg").removeClass("error").addClass("right").html("正在登录...");
		},
		success: function(data) {
			if (data.status == 1) {
				$("#msg").removeClass("error").addClass("right").html(data.info);
				window.location.href = "${z:u('/')}";
			} else {
				$("#msg").removeClass("right").addClass("error").html(data.info);
			}

		}
	});
</script>
</body>
</html>